package com.open.rbac.config.executor;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 线程池配置
 *
 * @author Riche's
 * @since 2025/4/29
 */
@Getter
@Setter
@ToString
public class ThreadPoolProperties {

    String poolName = "Work";

    int corePoolSize = 4;

    int maxPoolSize = 8;

    int queueCapacity = 2048;

    int keepAliveSeconds = 1800;

    boolean allowCoreThreadTimeOut = true;

    String threadNamePrefix = "EXECUTOR-";

    String rejectedExecutionClassName = "java.util.concurrent.ThreadPoolExecutor$CallerRunsPolicy";

}
